<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>收货地址</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>
    <!-- 
	<link rel="dns-prefetch" href="http://static.paipaiimg.com" />
     -->
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/buy_v2.s.min.css?t=201401202124" />    
</head>
<body>



<div id="c_wg.address_edit" style>
	<div class="wx_bar">
		<div class="wx_bar_back">
			<a id="indexBack" href="javascript:history.go(-1);"><i></i></a>
		</div>
		<div class="wx_bar_tit">修改收货地址</div>
	</div>
	
	<div class="wx_wrap">
		<div class="address_new">
			<input type="hidden" id="address_regionId" value="110116">
		
			<p>
				<label for>
					<span class="tit">收货人</span>
		            <input type="text" id="name" name="editAddress.name"  placeholder="名字" value="{$fullName}" maxlength="20" size="16">
				</label>
			</p>
			<p>
				<label for>
					<span class="tit">手机号码</span>
		            <input type="tel" id="mobile" name="editAddress.name"  placeholder="手机号码" value="{$phone}">
				</label>
			</p>
		
			<p>
				<label for>
					<span class="tit">详细地址</span>
		            <input type="text" class="addform_input" name="editAddress.address" id="address" placeholder="详细地址" value="{$address}">
	        	</label>
			</p>
		
			<p class="action">
				<button class="submit"  id="save_addr">确定</button>
			</p>
			
		</div>
	
	</div>

</div>
<div class="qb_quick_tip qb_none" id="bubble"></div>
	<script>
	var hrefParamsArray = GetSessionIdFromHref(window.location.search);
	hrefParamsArray["userName"]='{$userName}';
	function GetSessionIdFromHref(search){
	　　	var args = search.substring(1); 
	　　	var retval = new Array(); 
		args = args.split("&"); 
			for(var i = 0; i < args.length; i ++){ 
				str = args[i]; 
				var arg = str.split("="); 
				if(arg.length <= 1) continue; 
				
				if(arg[0] == 'params') {
					var params = decodeURIComponent(arg[1]);
					var obj = eval('(' + params + ')');
					if (obj.rootid != undefined) {
						retval["rootid"] = obj.rootid;
					}
					if (obj.oid != undefined) {
						retval["oid"] = obj.oid;
					}
					if (obj.ptype != undefined) {
						retval["ptype"] = obj.ptype;
					}
					if (obj.dtype != undefined) {
						retval["dtype"] = obj.dtype;
					}
				} else if(arg[0] == 'customerId') {
					retval["customerId"] = arg[1]; 
				}else if(arg[0] == 'userName'){
					retval["userName"] = arg[1]; 
				}
			} 
			return retval; 
	}
	
	var hrefPath = 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
	var basePath = 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
	var rootId = hrefParamsArray["rootid"] == undefined ? '' : ',"rootid":' + hrefParamsArray["rootid"];
	var preOid = hrefParamsArray["oid"];
	var ptype = hrefParamsArray["ptype"]  == undefined ? '' : ',"ptype":"' + hrefParamsArray["ptype"] + '"';
	var dtype = hrefParamsArray["dtype"]  == undefined ? '' : ',"dtype":"' + hrefParamsArray["dtype"] + '"';
	</script>
	
	
	<script type="text/javascript" src="wx_assets/js/zepto.min.js"></script>
	<script id="legos:21914" ver="21914:20131231:201401221048" name="PP.wx.buy" src="wx_assets/js/pp.wx.buy.20131231.js?v=20141209" charset="utf-8"></script>
	<!-- 
	<script type="text/javascript" src="http://3glogo.gtimg.com/mobilelife/qqbuy/t/s/assets/areaUtils-min.js?t=20130829"></script>
	 -->
	<script type="text/javascript" src="wx_assets/js/areaUtils-min.js?t=20130829"></script>
	
	<script type="text/javascript">PP.wx.buy.address();</script>
	<script id="legos:21948" ver="21948:20140122:20140218130348" name="PP.wg.mobilereport" src="wx_assets/js/pp.wg.mobilereport.20140122.js?t=20140218130348" charset="gbk"></script>
	<script type="text/javascript">
	  var objMsg = {p:"paipai.com",weixin:1};
	  ECC.cloud.report.pv(objMsg);
	</script>
	<script>window["PP.mobile.ping.time"]=[new Date()]</script>
	<script id="legos:21922" ver="21922:20140103:20140106154115" name="PP.mobile.ping" src="wx_assets/js/pp.mobile.ping.20140103.js?t=20140106154115" charset="gbk"></script>
</body>
</html>